from django.urls import path
from .views.profile_views import (
    KnowledgeProfileDashboardView,
    KnowledgePointDetailView,
    WeakPointsListView,
    SubjectProfileView,
    LearningProgressView,
    PracticeHistoryView,
    UpdateProfileAfterExamView,
    ProfileStatisticsView
)

app_name = 'analysis'

urlpatterns = [
    # 知识点画像仪表板
    path('dashboard/', KnowledgeProfileDashboardView.as_view(), name='profile_dashboard'),

    # 知识点详情
    path('knowledge-point/<int:pk>/', KnowledgePointDetailView.as_view(), name='knowledge_point_detail'),

    # 薄弱知识点列表
    path('weak-points/', WeakPointsListView.as_view(), name='weak_points_list'),

    # 科目维度知识点画像
    path('subject/<int:subject_id>/', SubjectProfileView.as_view(), name='subject_profile'),

    # 学习进度追踪
    path('learning-progress/', LearningProgressView.as_view(), name='learning_progress'),

    # 练习历史记录
    path('practice-history/', PracticeHistoryView.as_view(), name='practice_history'),

    # 考试后更新知识点画像 (API)
    path('update-after-exam/<int:exam_record_id>/', UpdateProfileAfterExamView.as_view(), name='update_after_exam'),

    # 画像统计信息
    path('statistics/', ProfileStatisticsView.as_view(), name='profile_statistics'),
]